<template slot="search">
  <div>
    <el-form-item label="任务编号">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.taskNo"
        placeholder="任务编号"
      ></el-input>
    </el-form-item>
    <el-form-item label="发布人编号">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.userCode"
        placeholder="发布人编号"
      ></el-input>
    </el-form-item>
    <el-form-item label="学校">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.schoolName"
        placeholder=""
      ></el-input>
    </el-form-item>

    <el-form-item label="发布时间">
      <el-date-picker
        size="mini"
        v-model="params.createTime"
        type="date"
        value-format="yyyy-MM-dd"
        placeholder="选择日期"
      >
      </el-date-picker>
    </el-form-item>

    <el-form-item label="审核状态">
      <el-select size="mini" v-model="params.auditStatus" placeholder="请选择">
        <el-option
          v-for="item in goodsTypes"
          :key="item.typeNo"
          :label="item.name"
          :value="item.typeNo"
        >
        </el-option>
      </el-select>
    </el-form-item>

    <el-form-item label="单子状态">
      <el-select size="mini" v-model="params.taskStatus" placeholder="请选择">
        <el-option
          v-for="item in stausList"
          :key="item.value"
          :label="item.name"
          :value="item.value"
        >
        </el-option>
      </el-select>
    </el-form-item>
  </div>
</template>
<script>
export default {
  data() {
    return {
      params: {
        schoolName: "",
        taskNo: "",
        auditStatus: "",
        userCode: "",
        taskStatus: "",
        createTime: "",
      },
      goodsTypes: [
        {
          name: "全部",
          typeNo: "",
        },
        {
          name: "待审核",
          typeNo: "DOING",
        },
        {
          name: "审核不通过",
          typeNo: "FAIL",
        },
        {
          name: "审核通过",
          typeNo: "SUCCESS",
        },
      ],
      stausList: [
        {
          name: "全部",
          value: "",
        },
        {
          name: "待接单",
          value: "no",
        },
        {
          name: "待同意",
          value: "toAgree",
        },
        {
          name: "进行中",
          value: "doing",
        },
        {
          name: "已完成",
          value: "finish",
        },
        {
          name: "取消",
          value: "cancel",
        },
        {
          name: "超时",
          value: "timeout",
        },
      ],
    };
  },
  created() {},
};
</script>
<style scoped>
</style>
